<!-- 通知  -->
<template>
  <uni-notice-bar :speed="50" show-icon showGetMore scrollable :text="noticetext" @getmore="notifyClick" />
</template>

<script setup lang="ts">
  import { HlwFbxxQuery } from "@/api/request/news"
  import { ref, onMounted } from 'vue'
  let noticetext = ref('')
  onMounted(() => {
    getRightData()
  })
  function getRightData() {

    HlwFbxxQuery({
      data: {
        xxzl: '101',
        limit: '1',
      },
      success: (res) => {
        if (res && res.length) {
          noticetext.value = res[0].xxbt
        }
      },
    })
  }
  function notifyClick() {
    uni.navigateTo({
      url: '/pages/bspsd/news/notify/list'
    });
  }
</script>

<style lang="scss" scoped>

</style>